import { BaseEntity } from '@cool-midway/core';
import { Column, Index, Entity } from 'typeorm';

/**
 * doupiaopiao_vote 票码
 */
@Entity('doupiaopiao_vote')
export class DoupiaopiaoVoteEntity extends BaseEntity {
  @Column({ comment: '订单ID', length: 50 })
  orderId: string;

  @Column({ comment: '原图片地址', nullable: true, length: 500 })
  oldImgsWz: string;

  @Column({ comment: '验证码', nullable: true, length: 500 })
  oldTextYcode: string;

  @Column({
    comment: '序列号（为空时使用取票码）',
    nullable: true,
    length: 500,
  })
  oldTextInfo: string;

  @Column({
    comment: '取票码（为空时使用序列号）',
    nullable: true,
    length: 500,
  })
  textInfo: string;
}
